export const options = {
  code1: '<p><b1>yarn</b1> <b3>link</b3> <b2>x-maps</b2>;</p><p><b1>import</b1> <b3>xMaps</b3> <b1>from</b1> <b2>x-maps</b2>;</p><p><b1>import</b1> <b2>"x-maps/xMaps.css"</b2>;</p>',
  code2: '<p><b4>map</b4> <b3>=</b3> <b1>new</b1> <b4>xMaps</b4>;</p><p><b4>map</b4><b1>.</b1><b1>initMap</b1><b4>(</b4><b2>options</b2><b4>)</b4>;</p>',
  options1: [
    {
      name: "id",
      type: "String",
      default: "map",
      desc: "地图的容器，页面元素的id，如果在构建时未指定，则无法生成海图"
    },
    {
      name: "mapUrl",
      type: "String",
      default: "/{z}/{x}/{y}.png",
      desc: "底层海图显示地址"
    },
    {
      name: "otherMaps",
      type: "Array",
      default: "",
      desc: "其他地图图层，详见图层添加-自定义瓦片图"
    },
    {
      name: "center",
      type: "String",
      default: "[0, 0]",
      desc: "初始化中心点：[经度, 纬度]"
    },
    {
      name: "zoom",
      type: "String",
      default: 8,
      desc: "显示层级"
    },
    {
      name: "minZoom",
      type: "Number",
      default: 2,
      desc: "海图允许拉伸的最小比例"
    },
    {
      name: "maxZoom",
      type: "Number",
      default: 18,
      desc: "海图允许拉伸的最大比例"
    },
    {
      name: "scale",
      type: "Boolean",
      default: false,
      desc: "是否显示比例尺"
    },
    {
      name: "tool",
      type: "Boolean",
      default: false,
      desc: "是否显示基础工具类（详见测绘工具-工具使用页面）"
    },
  ],
}